<template class="zcm">
    <el-table :data="tableData" border style="width: 100%" class="zcc">
        <el-table-column prop="username" label="登入账户" width="180 " />
        <el-table-column prop="lastLogin.ip" label="上次登入ip" width="180" />
        <el-table-column prop="lastLogin.loginTime" label="上次登入时间" width="280" sortable />
        <el-table-column prop="nowLogin.ip" label="本次登入ip" width='280' />
        <el-table-column prop="nowLogin.loginTime" label="本次登入时间" />
    </el-table>
</template>

<script setup>
import * as api from "@/api/loginLog"
import { onBeforeMount, ref } from "vue";

let tableData = ref([])
let getLog = async () => {
    let res = await api.loginLog()
    tableData.value = res.data.data;
}
onBeforeMount(() => {
    // let res = await api.loginLog(1,10)
    getLog()

})
</script>

<style>
.cell {
    text-align: center;
}
</style>


<script>
export default {
    meta: {
        name: "管理首页",
        title: "glsy",
        icon: 'icon-shouye'
    }
}
</script>